/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 *
 * @author zhouqh
 * Date: 2010-5-24 下午02:15:11
 */
package com.ccxe.manage.db;

/**
 * @author zhouqh
 *
 */
public class DBFactory {
	/**
	 * 数据库配置文件名
	 */
	
	//private static final String DB_PROPERTIES_FILE = "config/CCXDB";

	/**
	 * 根据配置文件中的配置获得数据库访问类{@link CcxDB}的实�?
	 * @return <code>CcxDB</code>对象
	 * @throws Exception 如果获取实例失败
	 */
	public static CcxDB getInstance() throws Exception {
		CcxDB ccxDB = null;
		try {
			ccxDB = (CcxDB) new CcxDBOracle();
		} catch (InstantiationException e) {
			throw new Exception(e);
		} catch (IllegalAccessException e) {
			throw new Exception(e);
		} catch (ClassNotFoundException e) {
			throw new Exception(e);
		}

		return ccxDB;
	}
	
	
}
